package day06;


/**
 * Created by Shinelon on 2016/9/19.
 */
public abstract class Animal {

    /**属性*/
    private String gender;

    private int life;

    private  int attack;


    /**行为***/
    public void chi() {
        System.out.println("chi fan");
    }

    public void sleep(){
        System.out.println("zzzzzz~");
    }
    public  void breathe(){
        System.out.println("huhuhu~xixixi~");
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getLife() {
        return life;
    }

    public void setLife(int life) {
        this.life = life;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
